# -*- coding: utf-8 -*-
class WangWeiYa():
	def setName(self,name):
		self.name = name
	def getName(self):
		print  'my name is :%s'% self.name
	def setAge(self,age):
		self.age=age
	def getAge(self):
		print 'my age is :%s'% self.age
	
method1=WangWeiYa()
method1.name = 'wangweiya'
method1.getName()

method2=WangWeiYa()
method2.age=27
method2.getAge()

class Fruit():
	def talk(self,color):
		self.color=color
		print 'my color is :%s' % self.color
		
class Apple(Fruit):
	def talk(self,color):
		self.color=color
		Fruit.talk(self, color)
		#print 'my color is :%s' % self.color
		
apple=Apple()
apple.talk('red')